<?php
/**
 * Joomla! 1.5 component JoomGPSTracks
 *
 * @version $Id: view.html.php 2009-08-09 15:40:19 svn $
 * @author Michael Pfister
 * @package joomGPStracks
 * @subpackage backend
 * @license GNU/GPL
 * @filesource
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// Import Joomla! libraries
jimport( 'joomla.application.component.view');

/**
 *
 */
class JoomgpstracksViewTerrain extends JView {
    /**
     *
     * @global object $mainframe
     * @global string $option
     * @param object $tpl
     */
    function display($tpl = null) {
        global $mainframe, $option;

        if($this->getLayout() == 'form'):
	    $this->_displayForm($tpl);
            return;
        endif;

        $model =& $this->getModel();

	$rows =& $this->get( 'Data');
	$total	= & $this->get( 'Total');
        $pagination = & $this->get( 'Pagination' );

        $this->assignRef('lists',	$lists);
        $this->assignRef( 'rows',   $rows);
        $this->assignRef('pagination',	$pagination);
        
        parent::display($tpl);
    }

    function _displayForm($tpl)  {

        $lists['block'] 	= JHTML::_('select.booleanlist',  'published', 'class="inputbox" size="1"', '' );

        $this->assignRef('lists',   $lists);
        parent::display($tpl);
    }
}
?>
